Restriction

The Restrictions existed in the response of the /ari/daily/details APIs of both AgencyUSB and ExtranetUSB. 


Example:

      "availStatuses": {
        "close": [
          false,
          false,
          false,
          false
        ],
        "minStayArrival": [
          0,
          2,
          0,
          0
        ],
        "maxStayArrival": [
          0,
          2,
          0,
          0
        ],
        "minStayThrough": [
          0,
          2,
          0,
          0
        ],
        "maxStayThrough": [
          0,
          2,
          0,
          0
        ],
        "minAdvanceDay": [
          0,
          2,
          0,
          0
        ],
        "maxAdvanceDay": [
          365,
          365,
          365,
          365
        ],
        "cta": [
          false,
          false,
          false,
          true
        ],
        "ctd": [
          false,
          false,
          false,
          true
        ],
        "fplos": [
          "1111111",
          "1001111",
          "1000001",
          "0000000"
        ]
      },

Below are the definitions for each field of the restriction:


AvailStatus
( take the availStatus of March 10th for example)
Descriptions
Close=trueThe availability for this product is closed (can not be sold).
minStayArrival=2I need to stay at least 2 days if I check in on March 10th.
maxStayArrival=2I can stay 2 days at most if I check in on March 10th.
minStayThrough=3

When the stay range passed through March 10th, I need to stay at least 3 days.

  • If you check in on March 8th, check out before March 11th is not allowed.
  • If you check in on March 9th, check out before March 12th is not allowed.
  • If you check in on March 10th, check out before March 13th is not allowed.
maxStayThrough=3

When the stay range passed through March 10th, I can only stay for 3 days at most.

  • If you check-in on March 8th, check-out after March 11th is not allowed.
  • If you check-in on March 9th, check out after March 12th is not allowed.
  • If you check-in on March 10th, check out after March 13th is not allowed.
minAdvanceDay=2If I want to check in on March 10th, I need to make a reservation before March 8th.
maxAdvanceDay=2

 If I want to check in on March 10th, I can only make a reservation for this product from March 8th.

cta=trueClose to arrival, can not check-in on March 10th.
ctd=trueClose to departure, can not check out on March 10th.
Fplos=“0010110”Full pattern length of stay. If I want to check in on March 10th, only stay 3 days, 5 days and 6 days are available.



FPLOS

Full Pattern Length of Stay: All possible length of stay options are provided in a string, with open or closed values. (IE: 1=Open, 0=Closed) 


Example

FPLOSExplanation
1001110=7 day total possible LOS1 night LOS is open; 2&3 night LOS is closed;  4, 5, &6 night LOS is open; 7 night LOS is closed.